'''字典的相关操作'''
d = {}#创建空字典
#以键值对的防止直接创建
d = {"name":"郭德纲","age":25,"addr":"北京市","job":"演员"}
#使用可迭代对象创建，
d = dict([("name","张三"),("age",30)])
#关键字传参
d = dict(name="李四",age=25)

d["addr"] = "杭州"#增
print(d)

del(d["addr"])#删
print(d)

d["name"] = "王五"#改
print(d)

print(d.get("name"))#查
print(d["name"])#




